package Storage;

import android.location.Location;

import com.google.android.maps.GeoPoint;

public class POI {
	private Location location;
	private String POIid;
	private String Title;
	private String MarkerName;
	private String Description;
	private String markedTime;
	private String IsHidden;
	private String markerPhoneNumber;

	public Location getLocation() {
		return this.location;
	}
	public String getMarkerPhoneNo() {
		return this.markerPhoneNumber;
	}
	public String getPOITitle() {
		return this.Title;
	}
	
	public String getMarkerName() {
		return this.MarkerName;
	}

	public String getPOIid() {
		return this.POIid;
	}

	public String getDescription() {
		return this.Description;
	}

	public String getMarkedTime() {
		return this.markedTime;
	}

	public String getIsHidden() {
		return this.IsHidden;
	}

	public void setLocation(Location location) {
		this.location = location;
	}
	public void setMarkerPhoneNo(String MarkerPhoneNo) {
		this.markerPhoneNumber = MarkerPhoneNo;
	}
	public void setMarkerName(String MarkerName) {
		this.MarkerName = MarkerName;
	}
	public void setPOITitle(String poititle) {
		this.Title = poititle;
	}

	public void setPOIid(String POIid) {
		this.POIid = POIid;
	}

	public void setDescription(String description) {
		this.Description = description;
	}

	public void setMarkedTime(String markedTime) {
		this.markedTime = markedTime;
	}

	public void setIsHidden(String isOnline) {
		this.IsHidden = isOnline;
	}
	public GeoPoint getGeoPoint()	{
		
		Double latitude = this.location.getLatitude()*1e6;
		Double longitude = this.location.getLongitude()*1e6;
		return (new GeoPoint( latitude.intValue(), longitude.intValue()));
	}
	public String getAllDetails() {
		String details="";
		details = details + "* Marker: " + getMarkerName()+"\n";
		details = details + "* Description: "+ getDescription()+"\n";
		details = details + "* Marked on: "+ getMarkedTime()+"\n";
	
		return details;
	}

}
